package com.yanqu.road.entity.enums;

public enum eChuHanBuffType {

    Type1_TeamSoldierMaxNum(1, "己方部队带兵上限+{0}固定值"),
    Type2_RecruitSoldierPrice(2, "己方征兵消耗降低{0}千分比"),
    Type3_CityTeamMaxNum(3, "己方城池守军队伍数量增加{0}个固定值"),
    Type4_Hospital(4, "己方医院上限+{0}，单次伤兵回复+{1}全是千分比"),
    Type5_CityFoodProduce(5, "提高城池产量+{0}千分比"),
    Type6_ReadySoldierMaxNum(6, "提高城池产量+{0}%"),

    Type7_MoveSpeedUp(7, "己方部队行军速度+{0}%"),
    Type8_BingFuProduct(8, "城池兵符产量+{0}个"),
    Type9_AtkAddition(9, "己方部队攻城战力+{0}%"),
    Type10_DefAddition(10, "己方部队守城战力+{0}%"),
    Type11_BuffLevelAdd(11, "所有战略要地城池BUFF等级+{0}，持续至活动结束,只对city表的buffId生效"),
    Type12_BingFuReward(12, "兵符+{0}个"),

    ;

    private int value;
    private String name;

    eChuHanBuffType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public static eChuHanBuffType forValue(int value) {
        for (eChuHanBuffType type : eChuHanBuffType.values()) {
            if (type.value == value) {
                return type;
            }
        }
        return null;
    }
}
